import {RequestUtil} from '@/utils'

export class SystemHttp {
    static PREFIX = "/manager/wiki/doc"


    static getAgreementPage = (params: Record<string, any>) => RequestUtil.getAjax(`${this.PREFIX}/agreement/pageList`, params)

    static addAgreement = (data: Record<string, any>) => RequestUtil.postAjax(`${this.PREFIX}/agreement/add`, data)

    static updateAgreement = (id: string | number, data: Record<string, any>) => RequestUtil.putAjax(`${this.PREFIX}/agreement/update/${id}`, data)

    static delAgreement = (data: any[]) => RequestUtil.delAjax(`${this.PREFIX}/agreement/delete`, data)



    static getEssayPage = (params: Record<string, any>) => RequestUtil.getAjax(`${this.PREFIX}/essay/pageList`, params)

    static addEssay = (data: Record<string, any>) => RequestUtil.postAjax(`${this.PREFIX}/essay/add`, data)

    static updateEssay = (id: string | number, data: Record<string, any>) => RequestUtil.putAjax(`${this.PREFIX}/essay/update/${id}`, data)

    static delEssay = (data: any[]) => RequestUtil.delAjax(`${this.PREFIX}/essay/delete`, data)




    static getStrategyPage = (params: Record<string, any>) => RequestUtil.getAjax(`${this.PREFIX}/strategy/pageList`, params)

    static addStrategy = (data: Record<string, any>) => RequestUtil.postAjax(`${this.PREFIX}/strategy/add`, data)

    static updateStrategy = (id: string | number, data: Record<string, any>) => RequestUtil.putAjax(`${this.PREFIX}/strategy/update/${id}`, data)

    static delStrategy = (data: any[]) => RequestUtil.delAjax(`${this.PREFIX}/strategy/delete`, data)


}
